const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    // 启用动态导入
    experiments: {
      topLevelAwait: true,
    },
  },
  devServer: {
    allowedHosts: 'all',
    port: 8891,
    client: {
      overlay: false,
    },
    proxy: {
      '/api': {
        target: "http://localhost:8990",
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
